package com.thomas.framework.entity;

import com.thomas.framework.core.EntityBase;

import java.util.List;

/**
 * Created by taohj on 2014/4/22.
 */
public class SysModel extends EntityBase {

    private String id;

    private String text;

    private String url;

    private String isLeaf;


    private String state="open";

    private SysModel parent;



    private boolean checked=false;


    private String iconCls;


    private Integer type;



    private Integer sort;

    private String description;




    private List<SysModel> children;

    public SysModel() {
    }

    public SysModel(String id) {
        this.id=id;
    }


    public String getId() {
        return id;
    }

    public SysModel setId(String id) {
        this.id = id;
        return this;
    }

    public String getText() {
        return text;
    }

    public void setText(String text) {
        this.text = text;
    }

    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }

    public String getIsLeaf() {
        return isLeaf;
    }

    public void setIsLeaf(String isLeaf) {
        this.isLeaf = isLeaf;
    }

    public SysModel getParent() {
        return parent;
    }

    public SysModel setParent(SysModel parent) {
        this.parent = parent;
        return  this;
    }


    public Integer getType() {
        return type;
    }

    public void setType(Integer type) {
        this.type = type;
    }

    public Integer getSort() {
        return sort;
    }

    public void setSort(Integer sort) {
        this.sort = sort;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public List<SysModel> getChildren() {
        return children;
    }

    public void setChildren(List<SysModel> children) {
        this.children = children;
    }

    public boolean isChecked() {
        return checked;
    }

    public void setChecked(boolean checked) {
        this.checked = checked;
    }

    public String getIconCls() {
        return iconCls;
    }

    public void setIconCls(String iconCls) {
        this.iconCls = iconCls;
    }

    public String getState() {
        return state;
    }

    public void setState(String state) {
        this.state = state;
    }
}
